﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAO;

namespace APA_DAO
{
    public class ReportDao
    {
        public ReportDao()
        {
            new SqlHelper();
        }

        public DataTable getAllUserNotAdmin()
        {
            return SqlHelper.ExecuteDataTable("GET_ALL_USER_NOT_ADMIN", CommandType.StoredProcedure);
           
        }

        public DataTable getReportThuChiTheoNgay(DateTime? fromdate, DateTime? toDate, int usrID)
        {
            return SqlHelper.ExecuteDataTable("GET_DATA_REPORT", CommandType.StoredProcedure,
                    "@TO_DATE", toDate,
                    "@FROM_DATE", fromdate,
                    "@USR_ID", usrID);
            
        }
    }
}
